import type { TypeUserInfo } from './types'
import { defineStore } from 'pinia';
import { ref } from 'vue';

// 获取英雄联盟进程是否正在运行
const leagueRunning = ref<boolean>(false);

// 游戏流数据
const gameflow = ref<any>({});

// 客户端在线信息
const clientInfo = ref<any>({});

// 用户信息
const userInfo = ref<TypeUserInfo>();

export const useClientStore = defineStore('client', () => {
  return { leagueRunning, gameflow, clientInfo, userInfo };
});
